package com.cje.proxyInvocationHandler.staticProxy;

import com.cje.proxyInvocationHandler.JDKDynamicProxy.Landlord2;

/**
 * @Auther: ChenJinEn
 * @Date: 2020/8/8 17:02
 * @Description: //TODO
 */
public class Tenant {
    public static void main(String[] args) {
        MiddleMan middleMan1 = new MiddleMan(new Landlord1());
        MiddleMan middleMan2 = new MiddleMan(new Landlord2());
        middleMan1.rentHouse();
        middleMan2.rentHouse();

    }
}
